package com.pension.service.impl;


import com.pension.dao.ServiceDao;
import com.pension.entity.Service;
import com.pension.service.ServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;

/**
 * @ClassName: ServiceServiceImpl
 * @Description: GOOD
 * @author: ZZL
 * @date: 2021/2/1  13:47
 */
@org.springframework.stereotype.Service
@Transactional
public class ServiceServiceImpl implements ServiceService {

    @Autowired
    ServiceDao serviceDao;

    @Override
    public void InsertService(Service service) {
        serviceDao.InsertService(service);
    }

    @Override
    public Service findServiceByNameWithParam(String realname) {
        return serviceDao.findServiceByNameWithParam(realname);
    }

    @Override
    public Integer getServiceCount() {
        return serviceDao.getServiceCount();
    }

    @Override
    public List<Service> findServiceLstByName(HashMap<String, Integer> map) {
        return serviceDao.findServiceLstByName(map);
    }

    @Override
    public List<Service> getAll() {
        return serviceDao.getServiceAll();
    }

    @Override
    public List<Service> getServiceBigAll(Service service) {
        return serviceDao.getServiceBigAll(service);
    }

    @Override
    public List<Service> findByType(String s_type) {
        return serviceDao.findByType(s_type);
    }

    @Override
    public List<Service> findByName(String realname) {
        return serviceDao.findByName(realname);
    }

    @Override
    public List<Service> findByTime(String s_time) {
        return serviceDao.findByTime(s_time);
    }

    @Override
    public List<Service> findByDay(String s_day) {
        return serviceDao.findByDay(s_day);
    }

    @Override
    public List<Service> findByClass(String s_class) {
        return serviceDao.findByClass(s_class);
    }

    @Override
    public List<Service> findByPlace(String s_place) {
        return serviceDao.findByPlace(s_place);
    }

    @Override
    public List<Service> findByAddress(String s_address) {
        return serviceDao.findByAddress(s_address);
    }

    @Override
    public List<Service> findByOldManRealName(String realname) {
        return serviceDao.findByOldManRealName(realname);
    }

    @Override
    public void serviceDeleteById(int id) {
        serviceDao.serviceDeleteById(id);
    }

}
